/*
 * Copyright (c) 2013-2015 Charkey. All rights reserved.
 *
 * This software is the confidential and proprietary information of Charkey.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the agreements you entered into with Charkey.
 *
 * Charkey MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
 *
 * Charkey SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
 * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

package cn.simastudio.talos.core.service.base;

import cn.simastudio.talos.core.model.base.Role;

import java.util.List;
import java.util.Set;

/**
 * Usage: 角色服务类
 *
 * @author Charkey
 * @date 2015/5/10 15:24
 */
public interface RoleService {

    Set<String> getRolesByUsername(String username);

    Role createRole(Role role);

    boolean updateRole(Role role);

    boolean deleteRole(Role role);

    Role getRole(Integer roleId);

    List<Role> getAllRolesWithResources();

    List<Role> getRoles(Integer[] roleIds);
}
